package de.bytefish.pgbulkinsert.pgsql.handlers;

import de.bytefish.pgbulkinsert.pgsql.model.network.MacAddress;

import java.io.DataOutputStream;

public class MacAddressValueHandler extends BaseValueHandler<MacAddress> {

    @Override
    protected void internalHandle(DataOutputStream buffer, final MacAddress value) throws Exception {
        buffer.writeInt(6);
        buffer.write(value.getAddressBytes());
    }
}
